package com.ahyesyesteam.aicarfaultrepair.service;

import com.ahyesyesteam.aicarfaultrepair.pojo.EsSolution;
import com.ahyesyesteam.aicarfaultrepair.pojo.Solution;
import com.ahyesyesteam.aicarfaultrepair.util.Response;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SSQ
 * @since 2022-06-17
 */
public interface ISolutionService extends IService<Solution> {

    List<Solution> getHotList(int limit);

    void updateViewCount(Long solutionId);

    void likeSolution(Long solutionId);

    List<Solution> selectSolutionList(int page, int size, String key);

    boolean saveSolutionInDBAndEs(String problem, String answer);
}
